package com.yxq.mdt.app.modules.main.model;


import com.yxq.mdt.app.base.RespBase;
import com.yxq.mdt.app.modules.main.bean.AppVersion;
import com.yxq.mdt.app.modules.main.bean.NameAndPhoneBean;

import io.reactivex.Observable;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;

public interface AppApi {

    /**
     * 检查APP版本
     *
     * @return
     */
    @GET("lbs/szy/getSzyVersion")
    Observable<AppVersion> getSzyVersion(@Query("id") String id);

    /**
     * 客服，拍卖配置
     *
     * @return
     */
    @GET("mdf/api/customer/getNameAndPhone")
    Observable<RespBase<NameAndPhoneBean>> getNameAndPhone();

    /**
     * 购买大礼包后成为团长
     *
     * @param orderId    订单号
     * @param orderPrice 订单价格
     * @return
     */
    @POST("mdf/api/pm/userFans/becomeTeamer")
    @FormUrlEncoded
    Observable<RespBase<String>> becomeTeamer(@Field("orderId") String orderId, @Field("orderPrice") String orderPrice);
}
